home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / Sherlock 2.0 / DevLibSrc / Main_DevLib / LIBcvt.h < prev    next >
Text File  |  1995-11-08  |  2KB  |  56 lines

  1. /*
  2.     devlib: Header file for LIBcvt.c.
  3.     
  4.     source:  LIBcvt.h
  5.     started: December 13, 1993.
  6.     version:
  7.         November 7, 1995.
  8.             Added cvt_l2s, cvt_ul2s and cvt_hex2s.
  9.             Added cvt_frac.
  10.         January 7, 1994.
  11. */
  12.  
  13. #ifndef LIBcvt_h_
  14. #define LIBcvt_h_
  15.  
  16. #pragma once
  17.  
  18. #ifndef CVT_BUF_SIZE
  19.     #define CVT_BUF_SIZE 200
  20. #endif
  21.  
  22.     /* safe: no buffer needed. */
  23.  
  24. int        cvt_1000percent    (long n, ulong tot);
  25. char *    cvt_blanks        (int n);
  26. char *    cvt_bool        (bool b);
  27. char *    cvt_short_fn    (char * file_name);
  28. void    cvt_test        (void);
  29.  
  30.     /* Unsafe without a buffer of a specified size. */
  31.  
  32. char *    cvt_cat2        (char * buf, int buf_len, char *s1, char *s2);
  33. char *    cvt_cat3        (char * buf, int buf_len, char *s1, char *s2, char *s3);
  34. char *    cvt_char        (char * buf, int buf_len, int c);
  35. char *    cvt_date        (char * buf, int buf_len, bool quote_flag);
  36. char *    cvt_double        (char * buf, int buf_len, double d);
  37. char *    cvt_file_error    (char * buf, int buf_len, int OSErrCode);
  38. char *    cvt_frac        (char * buffer, int buf_size, long a1, long a2);
  39. char *    cvt_hex            (char * buf, int buf_len, long hex);
  40. short    cvt_hex2s         (char * buf, ulong hex);
  41. char *    cvt_int            (char * buf, int buf_len, int i);
  42. char *    cvt_long        (char * buf, int buf_len, long a);
  43. short    cvt_l2s         (char * buf, long val);
  44. char *    cvt_paren        (char * buf, int buf_len, char * s);
  45. char *    cvt_percent        (char * buf, int buf_len, long n, ulong tot);
  46. char *    cvt_pstring        (char * buf, int buf_len, pstring p);
  47. char *    cvt_quote        (char * buf, int buf_len, char * p);
  48. char *    cvt_ptr            (char * buf, int buf_len, void * p);
  49. char *    cvt_time        (char * buf, int buf_len, bool quote_flag);
  50. char *    cvt_trunc        (char * buf, int buf_len, char * p, int length);
  51. char *    cvt_uint         (char * buf, int buf_len, uint ui);
  52. char *    cvt_ulong        (char * buf, int buf_len, ulong ul);
  53. short    cvt_ul2s         (char * buf, ulong val);
  54.  
  55. #endif /* LIBcvt_h_ */
  56.